﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentsTagger;
using DocumentsTagger.DM;
using DocumentsTagger.MatchingAlgorithms;
using DocumentsTagger.DAL;
using DocumentsTagger.BL;
using System.IO;

namespace DocumentsTaggerTester
{
    class Program
    {
        enum MyEnum
        {
            programer=1

            
        }

        static void check1(int num)
        {
            switch ((MyEnum)num)
            {
                case MyEnum.programer:
                    Console.WriteLine("pro");
                    break;
                default:
                    break;
            }
        }


        static void check2(MyEnum num)
        {
            switch (num)
            {
                case MyEnum.programer:
                    Console.WriteLine("pro");
                    break;
                default:
                    break;
            }
        }

        static void Main(string[] args)
        {
            /*
             * Use of Path, File and Directory classes.
             * Each of these utility has its own special functions and parameters.
             * 
             * To use this example create a folder named "test" in the root of C drive,
             * and fill it with some files.
             * All file's extension will be changed to Xml
             * 
             * Take a look at the Methods and Properties of File, Directory and Path classes.
             * also, take a look at an instance of FileInfo class, to see what is the diffrence between
             * File utility class and FileInfo class.
             */

            string inputDir = @"c:\test";
            string newFileName;
            foreach (string fullPath in Directory.GetFiles(inputDir))
            {
                newFileName = Path.ChangeExtension(fullPath, "xml");
                
                // Console.WriteLine(string.Format("Changing file: {0} to {1}",fullPath, newFileName));
                
                File.Move(fullPath, newFileName);
            }


            
            Console.WriteLine("Done. Press any key to close.");
            Console.ReadKey();
        }

    }
}
